package com.example.yls.demoa;

import android.database.ContentObserver;
import android.util.Log;
import android.os.Handler;

public class MyContentObserver extends ContentObserver {
    private Handler handler;
    public MyContentObserver(Handler handler){
        super(handler);
        this.handler=handler;
    }


    public void onChange(boolean selfChange){
            Log.e("MyContentObserver","onChange");
            this.handler.obtainMessage(MainActivity.MSG_STUDENT_CHANGED).sendToTarget();
        }
}




